// @Bind view.onReady
!function(self, arg) {
parentOpUid = '${request.getParameter("parentOpUid")}';

operationIdDesc = '${request.getParameter("operationIdDesc")}';

var dsOperation = view.id("dsOperation");

dsOperation.set("parameter", {parentOpUid: parentOpUid});

dsOperation.flush();
}

// @Bind #upSave.beforeExecute
!function(self, arg) {
var dsOperation = view.id("dsOperation");

var operation = dsOperation.getData("#");

operation.set("parentOpUid",parentOpUid);

}

// @Bind #dpOperationType.beforeExecute
!function(self,arg,dsTypesData) {
dsTypesData.set("parameter", {typeName:"tasktype"});
dsTypesData.flush();
}

// @Bind #dpOperationType.onValueSelect
!function(self,arg,dsOperation,dsTypesData) {
var operation = dsOperation.getData('#');
var typesData = dsTypesData.getData('#');

operation.set("operationType",typesData.get("typeId"));

operation.set("operationTypeDesc",typesData.get("idDescription"));

}

// @Bind #dpOpType.beforeExecute
!function(self,arg,dsTypesData) {
dsTypesData.set("parameter", {typeName:"optype"});
dsTypesData.flush();
}

// @Bind #dpOpType.onValueSelect
!function(self,arg,dsOperation,dsTypesData) {
var operation = dsOperation.getData('#');
var typesData = dsTypesData.getData('#');

operation.set("opType",typesData.get("typeId"));

operation.set("opTypeDesc",typesData.get("idDescription"));

}

